﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.AndonManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.AndonManagement.IssueTypeVMs
{
    public partial class IssueTypeTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._IssueType._IssueName")]
        public ExcelPropety IssueName_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.IssueName);
        [Display(Name = "_Model._IssueType._ActiveColor")]
        public ExcelPropety ActiveColor_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.ActiveColor);
        [Display(Name = "_Model._IssueType._NormalColor")]
        public ExcelPropety NormalColor_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.NormalColor);
        [Display(Name = "_Model._IssueType._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.Remark);
        [Display(Name = "_Model._IssueType._Code")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.Code);
        [Display(Name = "_Model._IssueType._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.CreateTime, true);
        [Display(Name = "_Model._IssueType._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.UpdateTime, true);
        [Display(Name = "_Model._IssueType._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.CreateBy);
        [Display(Name = "_Model._IssueType._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.UpdateBy);
        [Display(Name = "_Model._IssueType._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.IsValid);
        [Display(Name = "_Model._IssueType._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<IssueType>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class IssueTypeImportVM : BaseImportVM<IssueTypeTemplateVM, IssueType>
    {
            //import

    }

}